package self.rss.proto.util;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
public class GetDisclaimer  {
	
	
	public static void disclaimer(Context c, String m){
		String msg=m;
		final AlertDialog.Builder alert = new AlertDialog.Builder(c);
		alert.setTitle("Infos/Disclaimer");
		final ScrollView s = new ScrollView(c);
		final LinearLayout buttonArea = new LinearLayout(c);
        buttonArea.setOrientation(LinearLayout.VERTICAL);

		
		 final TextView tx = new TextView(c);
         
         tx.setText(msg);
         buttonArea.addView(tx);
         s.addView(buttonArea);

         //alert.setView(tx);
         alert.setView(s);
		alert.setPositiveButton("OK", new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int whichButton) {
				
			
			
			}
		});


		alert.show();
		
	}
}
